% An example of usage is: (in items, elements not mentionned are empty;
% e.g. items(1).linked is empty).

clear all;

items(1).name ='RB : ';
items(1).values = {'<select RB>';'Chris Johnson'; 'Adrian Peterson'; 'Ray Rice'};
items(2).name ='QB : ';
items(2).values = {'<select QB>';'QB1'; 'QB2'; 'Q3'};
items(3).name ='WR : ';
items(3).values = {'<select WR>';'w1'; 'w2'; 'w3'};
items(4).name ='RWR: ';
items(4).values = {'<select RWR>';'QB1'; 'QB2'; 'Q3'};
items(5).name ='TE : ';
items(5).values = {'<select te>';'QB1'; 'QB2'; 'Q3'};
items(6).name ='DST: ';
items(6).values = {'<select dst>';'QB1'; 'QB2'; 'Q3'};
items(7).name ='K  : ';
items(7).values = {'<select k>';'QB1'; 'QB2'; 'Q3'};
% 
% 
% 
% 
% 
% 
% 
% 
% items(1).name = 'Contact:';
% items(1).default = 0;
% items(1).values = {'email@address'};
% items(1).help = 'Enter your email address.';
% items(2).name = 'I will be coming!';
% items(2).default = 1;
% items(2).linked = [3 4 5 6];
% items(3).name = 'With my family';
% items(3).default = 1;
% items(3).exclusive = 4;
% items(3).indent = 1;
% items(4).name = 'Alone';
% items(4).default = 0;
% items(4).exclusive = 3;
% items(4).indent = 1;
% items(5).name = 'Transportation:';
% items(5).indent = 1;
% items(5).values = {1};
% items(6).name = 'Coming by';
% items(6).default = 1;
% items(6).indent = 2;
% items(6).values = {'Train'; 'Bus'; 'Foot'};
% items(6).help = 'Cars are polluting.\nUse public transportation whenever possible!';
% items(7).name = 'I''ll sure give a phone call!';
% items(7).default = 0;

title = 'pick player';

msg = 'Choose player';

out = CSEFlagDialog(items, title, msg)